<?php
namespace Home\Controller;

use Common\Controller\HomeController;
use Common\Model\TakeModel;
use Think\Page;

class NoticeController extends HomeController
{
    /**
     * 公告
     * @author Mr.Alien
     * @return string
     */
    public function edit()
    {
        $info = M('Notice')->find();
        $this->assign('info',$info);
        $this->display();
    } 

    /**
     * 保存公告
     * @author Mr.Alien
     * @return string
     */
    public function save()
    {
       $data = I('post.');

       $res = M("Notice")->where(array('id'=>1))->save($data);
       $this->success('保存成功!');
    } 



    
}